package net.dgg.rz.production.utils;

import net.dgg.framework.tac.utils.DggValidateUtil;
import net.dgg.rz.production.entity.PayProductRecord;
import net.dgg.rz.production.exception.ProductOrderExcption;

/**
 * 获得唯一码
 * Created by zyou on 2019/4/1.
 */
public class OnlyCodeUtils {

    public static String getOnlyCode(PayProductRecord payProductRecord){
        if(payProductRecord ==null){
            DggValidateUtil.notNull(null, ProductOrderExcption.class,"对象为空");
        }
        return payProductRecord.getId()+"_"+payProductRecord.getProductOrderId()+"_"+payProductRecord.getType();
    }
}
